<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:wiki="http://projectsexception.com/festivales/wiki"
  xmlns:i="http://apache.org/cocoon/include/1.0" >
  
  <xsl:param name="language" select="'en'"/>

  <xsl:template match="wiki:content">
    <i:include xmlns:i="http://apache.org/cocoon/include/1.0"  src="servlet:wikipedia-api:/content/{$language}/{@title}.xml"/>
  </xsl:template>
  
  <xsl:template match="wiki:biography">
    <i:include xmlns:i="http://apache.org/cocoon/include/1.0"  src="servlet:wikipedia-api:/biography/{$language}/{@title}.xml"/>
  </xsl:template>
  
  <xsl:template match="wiki:metadata">
    <i:include xmlns:i="http://apache.org/cocoon/include/1.0"  src="servlet:wikipedia-api:/metadata/{$language}/{@title}.xml"/>
  </xsl:template>
  
  <xsl:template match="wiki:picture">
    <i:include xmlns:i="http://apache.org/cocoon/include/1.0"  src="servlet:wikipedia-api:/picture/{$language}/{@title}.xml"/>
  </xsl:template>

  <xsl:template match="node()|@*|comment()" priority="-1">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()|comment()"/>
    </xsl:copy>
  </xsl:template>

</xsl:stylesheet>